//
//  RecommendAlbums.m
//  Hyatt
//
//  Created by QC.L on 15/5/26.
//  Copyright (c) 2015年 QC.L. All rights reserved.
//

#import "RecommendAlbums.h"
#import "Recommend.h"

@implementation RecommendAlbums

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"list"]) {
        self.recommendArr = [NSMutableArray array];
        NSArray *arr = value;
        for (NSDictionary *dic in arr) {
            Recommend *recommend = [[Recommend alloc] initWithDictionary:dic];
            [self.recommendArr addObject:recommend];
        }
    }
}

@end
